#ifndef _DHT_11_H
#define _DHT_11_H

#include <wiringPi.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define MAX_TIME 85
#define DHT11PIN 7
#define ATTEMPTS 5                 //retry 5 times when no response

struct dht11_result{
    int tempture;
    int humidity;
};


int dht11_read_val( struct dht11_result *result);
int  read_dht11(struct dht11_result* result);

#endif
